﻿using System;

namespace RiaMVVM.Example.Models
{
	public class MainModel : ViewModel<Web.ExampleDomainContext>
	{
		public DelegateRiaQuery<Web.ExampleDomainContext, Web.Product> GetProductsOperation { get; set; }

		public MainModel() : base(new Web.ExampleDomainContext())
		{
			GetProductsOperation = new DelegateRiaQuery<Web.ExampleDomainContext, Web.Product>(Context, c => c.GetProductsQuery());
		}
	}
}
